package com.hrm.houfei.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.hrm.houfei.po.Moneypaymentadd;

public interface IMoneyPaymentAddDAO {

	/**
	 * 多条件分页模糊查询
	 * 
	 * @param criteria
	 *            离线查询(带条件)
	 * @param start
	 *            索引
	 * @param limit
	 *            每页要显示的记录
	 * @return 当前页的所有记录
	 */
	public List<Moneypaymentadd> findMoneypaymentByPage(
			DetachedCriteria criteria, int start, int limit);
	
	/**
	 * 根据条件获取查询结果总记录的条数
	 * 
	 * @param criteria
	 *            离线查询
	 * @return 总记录的条数
	 */
	public int getMoneypaymentByPageListCount(DetachedCriteria criteria);
	
	/**
	 * 更新薪酬发放单信息
	 * 
	 * @param mpa
	 *            薪酬发放单实体
	 */
	public void update(Moneypaymentadd mpa);
	
	public abstract void save(Moneypaymentadd transientInstance);

	public abstract void delete(Moneypaymentadd persistentInstance);

	public abstract Moneypaymentadd findById(java.lang.Integer id);

	public abstract List findByExample(Moneypaymentadd instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findAll();

	public abstract Moneypaymentadd merge(Moneypaymentadd detachedInstance);

	public abstract void attachDirty(Moneypaymentadd instance);

	public abstract void attachClean(Moneypaymentadd instance);

}